#!/bin/sh

for i in $PLIBDIRS # $PLIBDIRS is exported in 2createpackages
do
	[ -d $i ] || continue
	LIBAO="`ls -1 ${i}/libao.so.* 2>/dev/null | head -n 1`"
	if [ "$LIBAO" ];then
		LIBAOBASE=${LIBAO##*/}
		ln -sv $LIBAOBASE ${i}/libao.so.2 2>/dev/null
	fi
done
